<?php /* Template_ 2.2.4 2011/07/08 15:29:36 E:\PHP\www\sagapo\_DATA\template_\skin\default\bbs.html 000002255 */ 
$TPL_list_1=empty($TPL_VAR["list"])||!is_array($TPL_VAR["list"])?0:count($TPL_VAR["list"]);?>
<div>
	<table class="table">
		<caption>
			게시판 관리
		</caption>
		<colgroup>
			<col class="t_chk" />
			<col />
			<col class="t_date" />
			<col class="t_date" />
		</colgroup>
		<thead>
			<tr>
				<th scope="col">번호</th>
				<th scope="col">제목</th>
				<th scope="col">작성자</th>
				<th scope="col">작성일</th>
			</tr>
		</thead>
		<tbody>
<?php if($TPL_VAR["list"]){?>
<?php if($TPL_list_1){foreach($TPL_VAR["list"] as $TPL_V1){?>
			<tr>
				<td class="txt_center"><?php echo $TPL_V1->b_seq?></td>
				<td>
					<a href="/board/view/<?php echo $TPL_V1->ba_id?>/<?php echo $TPL_V1->b_seq?>"><?php echo $TPL_V1->b_subject?></a>
				</td>
				<td><?php echo $TPL_V1->m_name?></td>
				<td class="txt_center"><?php echo $TPL_V1->date?></td>
			</tr>
<?php }}?>
<?php }else{?>
			<tr>
				<td colspan="4" class="txt_center no_data">
					등록된 게시물이 없습니다.
				</td>
			</tr>
<?php }?>
		</tbody>
	</table>
	
	<div class="paging">
		<ul>
<?php if($TPL_VAR["paging"]->enable_prev){?>
			<li>
				<a href="?<?php echo $TPL_VAR["start_link"]?>"> << </a>
			</li>
			<li>
				<a href="?<?php echo $TPL_VAR["prev_link"]?>"> < </a>
			</li>
<?php }?>
<?php if(is_array($TPL_R1=$TPL_VAR["paging"]->paging)&&!empty($TPL_R1)){foreach($TPL_R1 as $TPL_V1){?>
<?php if($TPL_V1["page_num"]==$TPL_VAR["paging"]->eb->p){?>
			<li>
				<strong><?php echo $TPL_V1["page_num"]?></strong>
			</li>
<?php }else{?>
			<li>
				<a href="?<?php echo $TPL_V1["page_link"]?>"><?php echo $TPL_V1["page_num"]?></a>
			</li> 
<?php }?> 
<?php }}?>
<?php if($TPL_VAR["paging"]->enable_next){?>
			<li>
				<a href="?<?php echo $TPL_VAR["next_link"]?>"> > </a>
			</li>
			<li>
				<a href="?<?php echo $TPL_VAR["end_link"]?>"> >> </a>
			</li>
<?php }?>
		</ul>
	</div>
</div>


<div style="padding:5px; text-align:right;">
	<button onclick="move('<?php echo $TPL_VAR["action"]?>/add/<?php echo $TPL_VAR["binfo"]->ba_id?>')">글쓰기</button>
</div>